home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.02 Feb 95 / Yenta / Erics C++ Libraries / Interface Classes / CPPRadioButton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-04  |  1.0 KB  |  43 lines  |  [TEXT/KAHL]

  1. /********************************************************* DEFINITION
  2.     DATE:    9/27/93
  3.     AUTHOR: Eric R. Rosé
  4.     
  5.     CLASS:  CPPRadioButton
  6.     
  7.     SUPERCLASS: CPPVisualObject
  8.     
  9.         This C++ class manages a radio button control
  10.     
  11. ********************************************************************/
  12.  
  13. #pragma once
  14.  
  15. #include <CPPControl.h>
  16.  
  17. class    CPPRadioCluster;
  18.  
  19. class CPPRadioButton : public CPPControl {
  20. public:
  21.             CPPRadioButton (CPPWindow *itsWindow, 
  22.                              CPPRadioCluster *itsCluster,
  23.                              short ResID,
  24.                              Boolean initiallyOn = FALSE,
  25.                              Boolean canBeTarget = FALSE,
  26.                              Boolean active = FALSE, Boolean visible = TRUE);
  27.             CPPRadioButton (CPPWindow *itsWindow, 
  28.                              CPPRadioCluster *itsCluster,
  29.                              Rect *itsBounds,
  30.                              StringPtr itsText, Boolean initiallyOn = FALSE,
  31.                              Boolean useWindowFont = FALSE,
  32.                              Boolean canBeTarget = FALSE,
  33.                              Boolean active = FALSE, Boolean visible = TRUE);
  34.             ~CPPRadioButton (void);
  35.  
  36.     virtual    char     *ClassName (void);
  37.     
  38.     virtual    void    DoOnClick (void);
  39.     
  40. protected:
  41.     CPPRadioCluster    *myCluster;
  42.     
  43. };